<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table width="350" border="1" align="center">
		<caption>管理员列表</caption>
		<tr bgcolor="darkgray">
			<td align="center">管理员编号</td>
			<td align="center">管理员名称</td>
			<td align="center">删除</td>
			<td align="center">修改</td>
		</tr>
		<c:forEach items="${requestScope.listAdmin }" var="admin">
			<tr>
				<td align="center">${admin.id }</td>
				<td align="center">${admin.userName}</td>
				<td align="center"><a href="${pageContext.request.contextPath}/admin_delete?admin.id=${admin.id } ">删除</a></td>
				<td align="center"><a href="${pageContext.request.contextPath}/updateAdmin.jsp?adminId=${admin.id }&userName=${admin.userName} ">修改</a></td>
			</tr>
		</c:forEach>
	</table>
	<br/>
	<center><a href="addAdmin.jsp">添加管理员</a></center>
</body>
</html>